package cn.jilian.common.service;

import java.io.File;
import java.io.InputStream;
import java.util.Map;

import cn.jilian.common.domain.FileInfo;


public interface FileService {
	
	long save(long fid,String name,File file,long meta);
	
	long save(long fid,String name,InputStream is,String ext,long size,String originalName,long meta);

	long add(long fid,String name,InputStream is,String ext,long size,String originalName,long meta);
	
	FileInfo get(long fid,String name,long meta);
	
	int update(FileInfo info);
	
	int delete(long sid);
	
	int delete(long fid,String name,long meta);
	
	int delete(long fid,long meta);
	
	Map<String,FileInfo> list(long fid,long meta);

}
